CreateMenuBar
Document ShellThe
CreateMenuBar
method creates and initializes a menu bar object.
ODMenuBar CreateMenuBar (in ODPlatformMenuBar menuBar);
menuBar
- A 32-bit value identifying a menu bar. On the Mac OS platform, this parameter is a handle (type
Handle
).- return value
- A reference to the newly created menu bar object.
DISCUSSION
The document shell calls this method. Your part typically calls this window-state object'sCopyBaseMenuBar
method instead of this method.This method initializes the reference count of the returned menu bar. When the caller has finished using that menu bar, it should call the menu bar's
Release
method.SEE ALSO
TheODWindowState::CopyBaseMenuBar
method (page 855).
TheODMenuBar
class (page 394).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help